package com.trying.simpleioc.demo.service;

import com.trying.simpleioc.annotation.Inject;
import com.trying.simpleioc.demo.SchoolModel;

public class TeacherService {

	@Inject
	private SchoolModel schoolModel;
	
	public void sayHello(){
		System.out.println("hello,i am a teacher . my name is mike. I'm from "+schoolModel.getSchoolName());
	}
	
}
